<div ms-controller="info" class="info">
	<header class="ui-bar ui-bar-nav">
		<a ms-click="back" class="ui-icon iconfont icon-arrowleft ui-fl" href="javascript:;"></a>
		<h1 class="ui-title">个人资料</h1>
	</header>
	<div class="main infoMain">
		<ul>
			<li class="row infoIndex">
				<h2 class="small-4 medium-4 large-4 columns">头像</h2>
				<div class="small-4 medium-4 large-4 columns" style="height:4em;">
					<img ms-if="headphoto==null||headphoto=='null'" src="modules/img/noLogin.png" />
					<img ms-if="headphoto!=null&&headphoto!='null'" ms-src="headphoto" />
				</div>
			</li>
			<li class="row">
				<h2 class="small-4 medium-4 large-4 columns">姓名</h2>
				<div class="small-6 medium-6 large-6 columns" ms-if="tag==1">
					<input type="text" placeholder="姓名" readonly="readonly" ms-duplex='name' />
				</div>
				<div class="small-6 medium-6 large-6 columns" ms-if="tag==2">
					<input type="text" placeholder="姓名" ms-duplex="name" />
				</div>
			</li>
			<li class="row">
				<h2 class="small-4 medium-4 large-4 columns">生日</h2>
				<div class="small-4 medium-4 large-4 columns" ms-if="tag==1">
					<input type="text" placeholder="2016-12-09" readonly="readonly" ms-duplex='birthday' />
				</div>
				<div class="small-4 medium-4 large-4 columns saveInput" ms-if="tag==2">
					<input type="text" id="date" readonly="readonly" ms-duplex='birthday' ms-click="choiceDate('date')" value="" placeholder="选择日期">
					<img src="modules/img/down.png" class="down" />
				</div>
			</li>
			<li class="row">
				<h2 class="small-4 medium-4 large-4 columns">性别</h2>
				<div class="small-4 medium-4 large-4 columns" ms-if="tag==1">
					<input type="text" placeholder="女" readonly="readonly" ms-duplex='sex' />
				</div>
				<div class="small-4 medium-4 large-4 columns saveInput" ms-if="tag==2" id="sex">
					<button class="small-5 medium-5 large-5 columns" ms-click="changeSex">女</button>
					<button class="small-5 medium-5 large-5 columns" ms-click="changeSex">男</button>
				</div>
			</li>
		</ul>
		<ul>
			<li class="row">
				<h2 class="small-4 medium-4 large-4 columns">手机</h2>
				<div class="small-4 medium-4 large-4 columns" ms-if="tag==1">
					<input type="number" placeholder="---" readonly="readonly" ms-duplex='phone' />
				</div>
				<div class="small-4 medium-4 large-4 columns" ms-if="tag==2">
					<input type="number" placeholder="请输入..." ms-duplex='phone' oninput="checknum(this)" />
				</div>
			</li>
			<li class="row">
				<h2 class="small-4 medium-4 large-4 columns">座机</h2>
				<div class="small-4 medium-4 large-4 columns" ms-if="tag==1">
					<input type="number" placeholder="---" readonly="readonly" ms-duplex='tel' />
				</div>
				<div class="small-4 medium-4 large-4 columns" ms-if="tag==2">
					<input type="number" placeholder="请输入..." ms-duplex='tel' oninput="checknum(this)" />
				</div>
			</li>
			<li class="row">
				<h2 class="small-4 medium-4 large-4 columns">紧急联系电话</h2>
				<div class="small-4 medium-4 large-4 columns" ms-if="tag==1">
					<input type="number" placeholder="---" readonly="readonly" ms-duplex='emPhone' />
				</div>
				<div class="small-4 medium-4 large-4 columns" ms-if="tag==2">
					<input type="number" placeholder="请输入..." ms-duplex='emPhone' oninput="checknum(this)" />
				</div>
			</li>
		</ul>
		<div class="saveInfo row">
			<button class="small-12 medium-12 large-12" ms-if="tag==1" ms-click="changeTag">修改</button>
			<button class="small-12 medium-12 large-12" ms-if="tag==2" ms-click="save" id="loadBtn">保存</button>
		</div>
	</div>
</div>